package com.my.test.thread.atomic;

import java.util.concurrent.atomic.AtomicIntegerArray;

public class TestAtomicIntegerArray {

    static int[] array = new int []{1,2};

    static AtomicIntegerArray aia = new AtomicIntegerArray(array);

    public static void main(String[] args) {
        aia.set(0,10);
        System.out.println(aia.get(0));
        System.out.println(aia.get(1));

        System.out.println(array[0]);



    }
}
